package com.dmzc.stage2.chapter27;

import java.util.Map;

public class OrderMessge extends MethodMessage {
    public OrderMessge(Map<String, Object> params, OrderService orderService) {
        super(params, orderService);
    }

    @Override
    public void execute() {
        String account = (String) params.get("account");
        long orderId=(long)params.get("orderId");
        orderService.order(account,orderId);
    }
}
